<template>
  <div>
    <AnimateBy3D/>
    <div class="login-wrapper">
      <div class="visual-wrapper">
<!--        <div class="logo-wrapper">-->
<!--          <img alt="" src="/img/company-logo.png"/>-->
<!--        </div>-->
        <VisualContent/>
      </div>
      <div class="form-wrapper">
        <div class="top-bar">
<!--          <a href="#">帮助</a>-->
<!--          <a href="#">反馈</a>-->
        </div>
        <LoginForm/>
        <div class="footer">
          {{ frontParam.login_copyright }}
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import AnimateBy3D from './AnimateBy3D/index';
import VisualContent from "./visualContent";
import LoginForm from "./loginForm";
import {baseURL} from "@/api/common";
import {mapState} from "vuex";

export default {
  name: "index",
  components: {
    AnimateBy3D,
    VisualContent,
    LoginForm
  },
  data() {
    return {
      companyLogo: `${baseURL}img/company-logo.png`
    }
  },
  computed: {
    ...mapState({ frontParam: (state) => state.common.frontParam }),
  },
}
</script>

<style scoped lang="scss">
.login-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  /*left: 0;
  padding: 0 15%;*/
  width: 100%;
  height: 100%;
  display: flex;
}
.visual-wrapper {
  width: 61.8%;
}
//.logo-wrapper {
//  padding: 30px 0 0 50px;
//
//  img {
//    display: block;
//  }
//}
.form-wrapper {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -32px -5px 101px 8px rgba(139, 174, 245, 0.2);
}
/*top-bar*/
.top-bar {
  padding: 20px 50px 0;
  text-align: right;
}
.top-bar a {
  font-size: 18px;
  color: #666666;
  text-decoration: none;
  margin: 0 10px;
}
.footer {
  font-size: 14px;
  line-height: 1.5em;
  padding: 20px 10px;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}
</style>
